<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:170px;">
				<label style="width:50px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:80px;"/>
			</li>
			<li style="width:0px;">
			<input type="hidden" name="sfield_name" value="id,user_id,mobile,tel,realname,company" />
			</li>
			<li style="width:60px;">
                <select name="stype" class="combox"> 
                    <option value="all" {if $stype=='all'||empty($stype)}selected="selected"{/if}>全部</option>
                    <option value="userid" {if $stype=='userid'}selected="selected"{/if}>会员ID</option>
					<option value="agent_id" {if $stype=='agent_id'}selected="selected"{/if}>专营商ID</option>
                    <option value="username" {if $stype=='username'}selected="selected"{/if}>会员名称</option>
                </select>
            </li>

			<li style="width:150px;">
			<label style="width:40px;">科目：</label>
			<select name="sub" class="combox">
                    <option value="all" {if $status=='all'||empty($status)}selected="selected"{/if}>请选择...</option>
                    <option value="CV" {if $status=='CV'}selected="selected"{/if}>CV</option>
                    <option value="BV" {if $status=='BV'}selected="selected"{/if}>BV</option>
					<option value="MV" {if $status=='MV'}selected="selected"{/if}>MV</option>
					<option value="PV" {if $status=='PV'}selected="selected"{/if}>PV</option>
			</select>
			</li>
			
			<li style="width:180px;">
                <label style="width:60px;">开始时间：</label>
				<input name="ktime" style="width:80px;" class="date" type="text" value="<php>if(!empty($datetime)&&$datetime>0){</php>{$datetime|date='Y-m-d',###}<php>}</php>"/>
			</li>
			<li style="width:180px;">
			    <label style="width:60px;">结束时间：</label>
				<input name="jtime" style="width:80px;" class="date" type="text" value="<php>if(!empty($endtime)&&$endtime>0){</php>{$endtime|date='Y-m-d',###}<php>}</php>"/>
            </li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<!--<li><a class="edit" href="{:U('Agent/edit')}&id={sid_dv}" target="dialog" width="580" height="350" warn="请选择一条信息"><span>修改信息</span></a></li>
			<li><a class="icon" width="830" height="380" href="{:U('Agent/detail')}&id={sid_dv}" target="dialog" warn="请选择一条信息"><span>查看信息</span></a></li>-->
		</ul>
	</div>
	<div id="user_list">
	<table class="table" layoutH="110" width="100%">
		<thead>
			<tr>
				 <th>id</th>
				  <th>用户id</th>
				  <th>用户帐号</th>
				  <th>变动金额</th>
				  <th>当前余额</th>
				   <th>资金变动原因</th>
				  <th>科目</th>
				  <th>订单平台</th>
				  <th>变动ip</th>
				  <th>变动时间</th>
				
				<!--<th width="110" orderField="endtime" {if $orderField=='endtime'}class="{$orderDirection}"{/if}>合约结束</th>-->
				<!--<th width="120">编辑</th>-->
			</tr>
		</thead>
		<tbody>
		<volist name="list" id="data">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td>{$data[id]}</td>
				<td><a title="查看" target="dialog" style="color:blue;" width="630" height="590" rel="User_detail_{$data['user_id']}" href="{:U('User/detail',array('id'=>$data['user_id']))}">{$data[user_id]}</a></td>
				<td>{$data[username]}</td>
				<td>{$data[value]/100}</td>
				<td>{$data[nowvalue]/100}</td>
				<td>{if $data[changtype] =='ADMIN_ADD'}转账充值{elseif $data[changtype]=='ORDER_BAK'}订单退款{elseif $data[changtype]=='ORDER_USE'}订单消费{elseif $data[changtype]=='PV_CHANG'}PV换CV{elseif $data[changtype]=='TENPAY_ADD'}在线充值{/if}</td>
				<td>{$data[subject]}</td>
				<td>{$data[platform]}</td>
				<td>{$data[cip]}</td>
				<td>{$data[ctime]|date='Y-m-d h:i:s',###}</td>
				<!--td><a title="编辑" target="dialog" width="580" height="350"  rel="Agent_edit_{$vo['id']}" href="{:U('Agent/edit',array('id'=>$vo['id']))}" class="btnEdit">编辑</a><a title="查看" target="dialog" width="830" height="380" rel="Agent_detail_{$vo['id']}" href="{:U('Agent/detail',array('id'=>$vo['id']))}" class="btnInfo">查看</a></td>-->
			</tr>
		</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>
